﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Hueton_1._2_Ultimate
{
    class Calculator
    {
        public static void Execute()
        {
            Console.WriteLine("First Digit:");
            int a1 = Console.Read();
            var a = a1.ToString();
            Console.WriteLine(a);
            Console.WriteLine("Usage(+,-,/,*):");
            var c = Console.ReadLine();
            Console.WriteLine("Second Digit:");
            int b1 = Console.Read();
            var b = b1.ToString();
            Console.WriteLine(b);
            if (c == "+")
            {
                 var Equation = b1 + a1;
                Console.WriteLine("Is:");
                Console.WriteLine(Equation.ToString());
                Console.WriteLine("Press anything to continue...");
                Console.ReadLine();
                Program.Init();
            }
            else
            {
                if (c == "-")
                {
                    var Equation = b1 - a1;
                    Console.WriteLine("Is:");
                    Console.WriteLine(Equation.ToString());
                    Console.WriteLine("Press anything to continue...");
                    Console.ReadLine();
                    Program.Init();
                }
                if (c == "/")
                {
                    var Equation = b1 / a1;
                    Console.WriteLine("Is:");
                    Console.WriteLine(Equation.ToString());
                    Console.WriteLine("Press anything to continue...");
                    Console.ReadLine();
                    Program.Init();
                }
                if (c == "*")
                {
                    var Equation = b1 * a1;
                    Console.WriteLine("Is:");
                    Console.WriteLine(Equation.ToString());
                    Console.WriteLine("Press anything to continue...");
                    Console.ReadLine();
                    Program.Init();
                }
            }
        }
    }
}
